<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('会员收费标准管理')"/>
</head>
<body class="gray-bg">
<div class="container mt-4">
    <div class="col-sm-12 search-collapse">
        <form id="job-form" action="/price/category/list">
            <div class="select-list">
                <ul>
                    <li>
                        商品名：<input type="text" name="categoryName"/>
                    </li>
                    <li>
                        地区名：<input type="text" name="regionName"/>
                    </li>
                    <li>
                    </li>
                    <li>
<!--                        <button class="btn btn-primary btn-rounded btn-sm" onclick=""><i class="fa fa-search"></i>&nbsp;搜索</button>-->
                        <button class="btn btn-primary" type="submit">提交</button>
                        <a class="btn btn-warning btn-rounded btn-sm" onclick=""><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        <a href="/price/category/toSave" class="btn btn-success mb-3">新增品类</a>
                    </li>
                </ul>
            </div>
        </form>
    </div>
    <table class="table table-striped table-bordered">
        <thead class="thead-dark">
            <tr>
                <th>ID</th>
                <th>商品</th>
                <th>地区</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="card : ${categorys}">
                <td th:text="${card.vcrId}"></td>
                <td th:text="${card.categoryName}"></td>
                <td th:text="${card.regionName}"></td>
                <td>
                    <a th:href="@{/price/category/edit/{id}(id=${card.id})}" class="btn btn-sm btn-primary">编辑</a>
                    <a th:href="@{/price/grDetail/list/{id}(id=${card.vcrId})}" class="btn btn-sm btn-primary">细项</a>
                    <a th:href="@{/price/category/delete/{id}(id=${card.vcrId})}" class="btn btn-sm btn-primary">删除</a>
                </td>
            </tr>
            <tr th:if="${categorys.isEmpty()}">
                <td colspan="6" class="text-center">暂无数据</td>
            </tr>
        </tbody>
    </table>
</div>
</body>
</html>